import {
  Component,
  computed,
  inject
} from '@angular/core';
import {
  LearningResources
} from './learning-resources/learning-resources';
import {Auth} from './auth/auth';
import {AuthService} from './auth/auth.service';


@Component({
  selector: 'app-root',
  imports: [LearningResources, Auth],
  templateUrl: './app.html',
  styleUrl: './app.css'
})
export class App {
  protected title = 'directives-deep-dive';

  private authService = inject(AuthService);
  isAdmin = computed(()=>this.authService.activePermission() === 'admin');
}
